<div id="display-type" class="float-right">	
	<?php 
	
	?>
	<table width="100%" cellpadding="0" cellspacing="1">
		<tr>
			<td align="right">
				<?php echo __('Filter by',true)?>
			</td>						
			<td>
				<?php 
					if(isset($this->params['named']['model_id'])){
						$selected = $this->params['named']['model_id'];
						unset($this->params['named']['model_id']);
					}else{
						$selected = null;
					}
					
					echo $form->input('FilterStoreProduct.model_id',array('label'=>false,'options'=>$store->products_mdels(),'empty'=>__d('store','- Offer Type -',true),'selected'=>$selected,'class'=>'search_filters selectbox','div'=>array('class'=>'button corners-4','style'=>'padding:2px 4px 7px 4px;')))?>
				<?php				
					$url = "window.location.href='".Router::url($this->here, false).'/model_id:\'+$(this).attr("value");';
					$this->Js->get('#FilterStoreProductModelId');
					$this->Js->event( 'change', $url ,true);
				
				?>					
			</td>
			<td width="100">
				&nbsp;
			</td>		
			<td align="right">
				<?php echo __('Sort by',true)?>
			</td>						
			<td>
				<?php //echo $this->Html->link(,Router::url($this->here, false).'/display:list',array('escape'=>false))?>
				<?php 
					$direction = (isset($this->params['named']['direction']))?$this->params['named']['direction']:'asc';
					echo $this->Paginator->sort($this->Html->image(HOST."/buttons_sort_price_{$direction}.png"),'price_detaliczna',array('escape'=>false)) 
				?>						
			</td>
			<td width="100">
				&nbsp;
			</td>
			<td align="right">
				<?php echo __('Display theme',true)?>
			</td>
			<td align="right">
				<?php echo $this->Html->link($this->Html->image(HOST.'/buttons_list.png'),Router::url($this->here, false).'/display:list',array('escape'=>false))?>						
			</td>
			<td align="left">
				<?php echo $this->Html->link($this->Html->image(HOST.'/buttons_icons.png'),Router::url($this->here, false).'/display:icons',array('escape'=>false))?>				
			</td>
		</tr>
	</table>
	<?php ?>		
</div>